package cn.stylefeng.guns.modular.basic.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 油卡管理
 * </p>
 * @author zhucx
 * @since 2023-01-19
 */
@TableName("basic_oil_card")
@Data
public class BasicOilCard implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 单位名称
     */
    @TableField("card_name")
    private String cardName;

    /**
     * 卡号
     */
    @TableField("card_number")
    private String cardNumber;

    /**
     * 车辆id
     */
    @TableField("car_id")
    private Long carId;

    /**
     * 绑定车辆
     */
    @TableField("car_number")
    private String carNumber;

    /**
     * 当前余额
     */
    @TableField("balance")
    private String balance;

    /**
     * 最近充值消费日期
     */
    @TableField("lately_time")
    private String latelyTime;

    /**
     * 开卡日期
     */
    @TableField("kaika_time")
    private String kaikaTime;

    /**
     * 到期日期
     */
    @TableField("daoqi_time")
    private String daoqiTime;

    /**
     * 描述
     */
    @TableField("notes")
    private String notes;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 创建人
     */
    @TableField("create_user_name")
    private String createUserName;

    /**
     * 修改人
     */
    @TableField("update_user_name")
    private String updateUserName;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * v1
     */
    @TableField("v1")
    private String v1;

    /**
     * v2
     */
    @TableField("v2")
    private String v2;

    @Override
    public String toString() {
        return "BasicOilCard{" +
        "id=" + id +
        ", cardNumber=" + cardNumber +
        ", carId=" + carId +
        ", carNumber=" + carNumber +
        ", balance=" + balance +
        ", latelyTime=" + latelyTime +
        ", kaikaTime=" + kaikaTime +
        ", daoqiTime=" + daoqiTime +
        ", notes=" + notes +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", createUserName=" + createUserName +
        ", updateUserName=" + updateUserName +
        ", deptId=" + deptId +
        ", deliverId=" + deliverId +
        ", v1=" + v1 +
        ", v2=" + v2 +
        "}";
    }
}
